import request from '@/utils/request'

// 查询救援队伍管理列表
export function listTeam(query) {
    return request({
        url: '/rescue/team/list',
        method: 'get',
        params: query
    })
}

// 查询救援队伍管理详细
export function getTeam(id) {
    return request({
        url: '/rescue/team/' + id,
        method: 'get'
    })
}

// 新增救援队伍管理
export function addTeam(data) {
    return request({
        url: '/rescue/team',
        method: 'post',
        data: data
    })
}

// 修改救援队伍管理
export function updateTeam(data) {
    return request({
        url: '/rescue/team',
        method: 'put',
        data: data
    })
}

// 删除救援队伍管理
export function delTeam(id) {
    return request({
        url: '/rescue/team/' + id,
        method: 'delete'
    })
}
